import Vue from 'vue'
import Vuex from 'vuex'
import category from './modules/category.js'
import home from './modules/home.js'
import phoneInfo from './modules/phoneInfo.js'
import user from './modules/user.js'
import discover from './modules/discover.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	// 开启模块化
	modules:{
		category,
		home,
		phoneInfo,
		user,
		discover
	}
})

export default store